﻿using System;
using SqlSugar;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 费控津贴表
    /// 推送SAP
    /// </summary> 
    public class FrameOrderUsfeeAllowance
    {
        /// <summary>
        /// 主键
        /// </summary> 
        [SugarColumn(IsPrimaryKey = true)]
        public Guid ID { get; set; }

        /// <summary>
        /// 流程类型
        /// </summary>
        public string allowance_type { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public string department { get; set; }

        /// <summary>
        /// 员工编号
        /// </summary>
        public string employeeId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string employeeName { get; set; }

        /// <summary>
        /// 每月补贴
        /// </summary>
        public decimal? allowance_lines { get; set; }

        /// <summary>
        /// 年
        /// </summary>
        public string year { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public string month { get; set; }

        /// <summary>
        ///日
        /// </summary>
        public string day { get; set; }

        /// <summary>
        /// 是否高管流程
        /// </summary>
        public bool? isgaoguan { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 探亲次数（年探亲交通补贴（次数））月
        /// </summary>
        public string YearVisitFamilyCount { get; set; }

        /// <summary>
        /// 一次性安家费（年探亲交通补贴（金额））
        /// </summary>
        public decimal? YearVisitFamilyMoney { get; set; }
        /// <summary>
        /// 流程类型
        /// </summary>
        public string allowance_type2 { get; set; }
        /// <summary>
        /// 每月补贴
        /// </summary>
        public decimal? allowance_lines2 { get; set; }
        public string InstanceNumber { get; set; }
        /// <summary>
        /// 制单日期
        /// </summary>
        public string ProcessStartTime { get; set; }
        /// <summary>
        /// 审批通过日期
        /// </summary>
        public string ApproveDate { get; set; }
        /// <summary>
        /// 流程状态
        /// </summary>
        public string InstanceType { get; set; }
        /// <summary>
        /// hrbp审批人
        /// </summary>
        public string HRBPApprove { get; set; }

        /// <summary>
        /// 推送日期
        /// </summary>
        public DateTime? PushTime { get; set; }

        /// <summary>
        /// 推送状态（未推送：0 已推送：1）
        /// </summary>
        public string BusinessType { get; set; }

        /// <summary>
        /// 数据更新时间
        /// (用于财务中心抽数据日期记录)
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 数据被抽取时间
        /// (财务中心主动掉接口，记录下来)
        /// </summary>
        public DateTime? LasterSyncDate { get; set; }

        /// <summary>
        /// 标记：此数据已被更新，不应该被同步
        /// 同步是不要修改此字段，业务逻辑时调用
        /// </summary>
        public bool? IsOldData { get; set; } = false;
    }
}